package com.mrdeer.iot.processor;

import com.mrdeer.iot.bean.ChannelInfo;
import com.mrdeer.iot.bean.command.Protocol;
import io.netty.channel.ChannelHandlerContext;

/**
 * @Author: xie jianchu
 */
public interface IDataProcessor {

    IDataProcessor getNextProcessor();

    void setNextProcessor(IDataProcessor nextProcessor);

    void translate(ChannelHandlerContext ctx, ChannelInfo channelInfo, Protocol protocol) throws Exception;
}
